<div class="weui_cell" {guanlians}>
     <div class="weui_cell_hd"><label for="" class="weui_label">{title}</label></div>
     <div class="weui_cell_bd weui_cell_primary">
         <input class="datetimepicker weui_input" type="text" name="{name}" onchange="window.scope.{tovalue}.{name}=$(this).val()" ng-model="{tovalue}.{name}" placeholder="请选择"/>
     </div>
	 <script type="text/javascript">
					require(["datetimepicker"], function(){
						$(function(){
								var fmt;
								if('{time_type}'=='day'){
									fmt="Y-m-d";
								}else if('{time_type}'=='year'){
									fmt="Y";
								}else{
									fmt="Y-m-d H:i";
								}
								var option = {
									lang : "zh",
									step : 5,
									timepicker : true,
									closeOnDateSelect : true,
									format : fmt,
									
								};
							$(".datetimepicker[name = '{name}']").datetimepicker(option);
						});
					});
					</script>
</div>